{% extends 'layout.html'%}

{% block main %}

<ol class="breadcrumb">
    <li><a href="/admin">管理首页</a></li>
    <li><span>用户管理</span></li>
</ol>

<table class="table table-hover table-striped">
    <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>是否是管理员</th>
        </tr>
    </thead>
    <tbody>
        {% for user in resultList %}
        <tr>
            <td>{{user._id.toString()}}</td>
            <td>{{user.username}}</td>
            <td>{{user.password}}</td>
            <td>
                {% if user.isAdmin %}
                    <span style="color:green;font-weight: bold;">是</span>
                {% else %}
                    否
                {% endif %}
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>


{% include 'page.html' %}

{% endblock %}